package cn.com.dhcc.turbo.entity.exch.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.exch.ExchRel;

/**
 * 节点交换关系表
 * 
 * @日期：2014-8-7 下午4:35:03
 * @作者：张洪涛
 * @版权所有：东华软件
 * @版本：1.0
 */
public class ExchRelRowWapper implements RowMapper<ExchRel> {
	@Override
	public ExchRel mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		ExchRel vo = new ExchRel();
		vo.setNodeIdCreator(rs.getString("node_id_creator"));
		vo.setNodeIdTo(rs.getString("node_id_to"));
		vo.setMtime(rs.getDate("mtime"));
		vo.setRemark(rs.getString("remark"));
		return vo;
	}
}
